package com.xunlai.infra.permission.business.service;

import com.xunlai.infra.permission.business.vo.invitation.InvitationCodeCreateVo;
import com.xunlai.infra.permission.business.vo.invitation.InvitationCodeListVo;
import com.xunlai.infra.permission.business.vo.invitation.InvitationUpdateVo;
import com.xunlai.infra.permission.common.exception.PermissionBusinessException;
import com.xunlai.infra.permission.common.vo.BasePageRespVo;

/**
 * @author liang
 * @date 8/21/23 9:44 PM
 */
public interface InvitationCodeService {

    Long createInvitationCode(InvitationCodeCreateVo invitationCodeCreateVo) throws PermissionBusinessException;

    void bindInviterAccount(Long id, InvitationUpdateVo invitationUpdateVo);

    BasePageRespVo<InvitationCodeListVo> listInvitationCode(Integer pageNum,Integer pageSize);
}
